<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
        <style>
            .box{
                position: relative;
                width: 200px;
                height: 50px;
                border: 1px solid green;
            }
            .input-text{
                position: relative;
                width: 150px;
                height: 40px;
                margin: auto;
                line-height: 40px;
                font-size: 16px;
                border: none;
                outline: none;
            }
        </style>
    </head>

    <body>
        <div class="box">
            <input class="input-text" type="text">
        </div>
        
    </body>
</html>